import Mock from 'mockjs'

let users = Mock.mock({
  'username': 'admin',
  'password': '123456'
})

let list = Mock.mock({
  'list|20': [
    {
      'name|1': ['财务部', '人事部', '技术部', '市场部'],
      'manage|1': ['总公司', '分公司'],
      'peopleCount': '@natural(60,100)',
      'address|1': [
        {
          id: 1,
          type: '天津市'
        },
        {
          id: 2,
          type: '北京市'
        },
        {
          id: 3,
          type: '上海市'
        }

      ],
      'usable|1': [true, false]

    }
  ]
})
let provinces = Mock.mock([
  {
    id: 1,
    type: '天津西青区'
  },
  {
    id: 2,
    type: '北京朝阳区'
  },
  {
    id: 3,
    type: '上海浦东区'
  }
  ])

export default {
  users: users,
  list: list,
  provinces: provinces
}
